#!/bin/bash
for i in hadoop100.localdomain hadoop101.localdomain hadoop102.localdomain;
do
	echo "========== $i =========="
	ssh $i "source /etc/profile;jps"
done
